package com.woniuxy.testEnum;

/**
 * description: TestEnum <br>
 * date: 2022/2/2 2:53 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */

/**
 * 测试枚举
 */
public class TestEnum {
    public static void main(String[] args) {
        Season a = Season.AUTUMN;

        switch (a) {
            case SPRING:
                System.out.println("春天来了");
                break;
            case SUMMER:
                System.out.println("夏天来了");
                break;
            case AUTUMN:
                System.out.println("秋天来了");
                break;
            case WINTER:
                System.out.println("冬天来了");
                break;
        }
    }
}

enum Season {
    SPRING, SUMMER, AUTUMN, WINTER
}

enum Week {
    MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY
}